/**
 * @author 培培
 * @condition 努力学习中
 *
 * 处理流、包装流
 */
public class BufferedReader_ extends Reader_{

    private Reader_ reader_;//属性是 Reader_ 类

    public BufferedReader_(Reader_ reader_) {
        this.reader_ = reader_;
    }

    //封装一层
    public void readFile(){
        reader_.readFile();
    }

    //让方法更灵活，多次读取文件
    public void readFiles(int num){
        for (int i = 0; i < num; i++){
            reader_.readFile();
        }
    }

    //扩展 readString ,批量处理字符串数据
    public void readStrings(int num){
        for (int i = 0; i < num; i++) {
            reader_.readString();
        }
    }
}
